/*
 * CastDRAndroid
 * Copyright (c) 2014 Christian Holm Christensen
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * Top-level
 */
/**
 * Top-level.
 *
 * The activity is structured like
 *
 * <pre>
 *    Activity
 *      `- DrawerListLayout
 *      	`- ViewPager
 *               |- PageTitleStrip
 *               |- TopFragment
 *               | ...
 *               `- TopFragment
 * </pre>
 *
 * There's one TopFragment for each categry .  Depending on the overall  layout (one-/two-pane) TopFragment contains one or two fragments.  In one-pane layouts, we have
 *
 * <pre>
 *   TopFragment
 *     `- CategoryFragment
 * </pre>
 *
 * The CategoryFragment is replaced by a subCategoryFragment on selecting a SubCategory in the CategoryFragemnt.
 *
 * In two-pane layout, we have
 *
 * <pre>
 *   TopFragment
 *     |- CategoryFragment
 *     `- SubCategoryFragment.
 * </pre>
 *
 * @author cholm
 *
 */
package org.cholm.media.castdr;